<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>netshop/"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Book Store by www.softwarerusher.cn</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" href="lightbox.css" type="text/css" media="screen" />
<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/scriptaculous.js?load=effects" type="text/javascript"></script>
<script src="js/lightbox.js" type="text/javascript"></script>
<script type="text/javascript" src="js/java.js"></script>
</head>
<body>
<div id="wrap">
  <div class="header">
    <div class="logo"><a href="index.jsp"><img src="images/logo.gif" alt="" title="" border="0" /></a></div>
    <div id="menu">
      <ul>
        <li class="selected"><a href="index.jsp">主页</a></li>
        <li><a href="about.jsp">关于我们</a></li>
        <li><a href="allcategory">百科全书</a></li>
        <li><a href="todayhot">今日特供</a></li>
        <li>
        <%if(session.getAttribute("login")==(null)||"false".equals(session.getAttribute("login"))){ %>
        <a href="myaccount.jsp">
        <%}else{ %>
        <a href="myaccountlogin.jsp">
        <%} %>
        我的账户
        </a></li>
        <li><a href="register.jsp">注册账户</a></li>
        <!--<li><a href="details.jsp">价格</a></li>-->
        <li><a href="contact.jsp">联系我们</a></li>
      </ul>
    </div>
  </div>
  <div class="center_content">
  
    <div class="left_content">
      <div class="crumb_nav"> <a href="index.jsp">主页</a> &gt;&gt; <%=request.getAttribute("bookname") %> </div>
      <div class="title"><span class="title_icon"><img src="images/bullet1.gif" alt="" title="" /></span><%=request.getAttribute("bookname") %></div>
      <div class="feat_prod_box_details">
        <div class="prod_img"><a href="#"><img src="<%=request.getAttribute("bookpic") %>" alt="" title="" border="0" /></a> <br />
          <br />
          <a href="<%=request.getAttribute("bookpic") %>" rel="lightbox"><img src="images/zoom.gif" alt="" title="" border="0" /></a> </div>
        <div class="prod_det_box">
          <div class="box_top"></div>
          <div class="box_center">
            <div class="prod_title">内容简介</div>
            <p class="details"><%=request.getAttribute("bookdescription") %>
              </p>
            <div class="price"><strong>单价:</strong> <span class="red"><%=request.getAttribute("bookprice") %> $</span></div>
            
            <form name="order_now" action = "netshop/order_now" method = "post">
            <div class="price"><strong>数量: </strong><input type = "text" name="num" value = "1"/></div>
            <input type = "hidden" name = "bookisbn" value = "<%=request.getAttribute("bookisbn") %>"/>
            <a class = "more"  href="javascript:document.order_now.submit()" ><img src="images/order_now.gif" alt="" title="" border="0"/></a>
            </form>
            
            <div class="clear"></div>
          </div>
          <div class="box_bottom"></div>
        </div>
        <div class="clear"></div>
      </div>
      <div id="demo" class="demolayout">
        <ul id="demo-nav" class="demolayout">
          <li><a class="active" href="http://www.softwarerusher.cntab1">相关书籍</a></li>
          <li><a class="" href="http://www.softwarerusher.cntab2">更多内容</a></li>
        </ul>
        <div class="tabs-container">
          <div style="display: block;" class="tab" id="tab1">
         
            <s:iterator value="bookList">
            <div class="new_prod_box"> <a href="details?bookisbn=${bookIsbn }">${bookName }</a>
              <div class="new_prod_bg"> <a href="details?bookisbn=${bookIsbn }"><img src="${bookPic }" alt="" title=""  border="0" class="today"/></a> </div>
            </div>
           </s:iterator>
            <div class="clear"></div>
          </div>
          <div style="display: none;" class="tab" id="tab2">
          
           
              <p class="more_details">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation. </p>
            <ul class="list">
              <li><a href="http://www.softwarerusher.cn">Lorem ipsum dolor sit amet, consectetur adipisicing elit</a></li>
              <li><a href="http://www.softwarerusher.cn">Lorem ipsum dolor sit amet, consectetur adipisicing elit</a></li>
              <li><a href="http://www.softwarerusher.cn">Lorem ipsum dolor sit amet, consectetur adipisicing elit</a></li>
              <li><a href="http://www.softwarerusher.cn">Lorem ipsum dolor sit amet, consectetur adipisicing elit</a></li>
            </ul>
            <p class="more_details">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation. </p>
           
          </div>
        </div>
      </div>
      <div class="clear"></div>
    </div>
    <!--end of left content-->
    <div class="right_content">
<jsp:include page="cartview.jsp" /> 
      <div class="title"><span class="title_icon"><img src="images/bullet3.gif" alt="" title="" /></span>rush一下，你就知道</div>
      <div class="search">
        <form name ="search_now" action = "netshop/search" method= "post">
        <input type = "text" value = "斗破苍穹" name ="searchcontext" style="width:230px;height:20px;"/>
        <a class = "more"  href="javascript:document.search_now.submit()" ><img src="images/search_now.jpg" alt="" title="" border="0"/></a>
        </form>
        <p></p><p></p><p></p><p></p>
      </div>
      <jsp:include page="todayhot.jsp" /> 
      <jsp:include page="categorybox.jsp" />
    </div>
    <!--end of right content-->
    <div class="clear"></div>
  </div>
  <!--end of center content-->
  <div class="footer">
    <div class="left_footer"><img src="images/footer_logo.gif" alt="" title="" /><br />
      <a href="http://www.softwarerusher.cn">www.softwarerusher.cn</a></div>
    <div class="right_footer"> <a href="http://www.softwarerusher.cn">主页</a> <a href="about.jsp">关于我们</a> <a href="http://www.softwarerusher.cn">售后服务</a> <a href="http://www.softwarerusher.cn">保密规则</a> <a href="contact.jsp">联系我们</a> </div>
  </div>
</div>
</body>
<script type="text/javascript">

var tabber1 = new Yetii({
id: 'demo'
});

</script>
</html>

